﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sdepci.InfoCode.BLL
{
    /// <summary>
    /// 数据库连接字符串
    /// </summary>
    public static class ConnectionString
    {
        public static string Default
        {
            get
            {
                try
                {
                    return new AppSettingsReader().GetValue("ConnectionString", typeof(string)).ToString();
                }
                catch (Exception ex)
                {
                    throw new Exception("配置文件中ConnectionString节点错误（找不到该节点，或填写的值不对）", ex);
                }
            }
        }
    }
}
